"""
Akamai
"""
from DrissionPage import ChromiumOptions, WebPage

base_url = 'https://www.dhl.com/cn-zh/home.html'


def crack_5sd():
    dp = ChromiumOptions()
    dp.headless()  # 无头模式
    dp.set_argument('--no-sandbox')  # 无沙盒模式
    dp.set_argument('--disable-gpu')  # 禁用gpu加速
    dp.set_argument('--start-maximized')  # 设置启动时最大化
    page = WebPage(mode='d', chromium_options=dp)
    page.get(base_url)
    page.wait(1)
    try:
        cookie = page.cookies().as_dict()
        print(cookie.get('_abck'))
    finally:
        page.quit()


if __name__ == '__main__':
    crack_5sd()
